function voicePrompt (text) {
  const music = new Audio('https://tts.baidu.com/text2audio?cuid=baike&lan=ZH&ctp=2&pdt=301&vol=9&rate=32&per=4&tex=' + text)
  music.addEventListener("canplaythrough", event => {
    /* 音频可以播放；如果权限允许则播放 */
    music.play()
  })
}
export {
  voicePrompt
}

